package com.candy.pojo;

public class Student {
    private Integer stuNo;
    private Integer stuAge;
    private String stuName;
    private Teacher stuTacher;

    public Student() {
    }

    public Student(Integer stuNo, Integer stuAge, String stuName, Teacher stuTacher) {
        this.stuNo = stuNo;
        this.stuAge = stuAge;
        this.stuName = stuName;
        this.stuTacher = stuTacher;
    }

    public Integer getStuNo() {
        return stuNo;
    }

    public void setStuNo(Integer stuNo) {
        this.stuNo = stuNo;
    }

    public Integer getStuAge() {
        return stuAge;
    }

    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public Teacher getStuTacher() {
        return stuTacher;
    }

    public void setStuTacher(Teacher stuTacher) {
        this.stuTacher = stuTacher;
    }

    public void doEatting(){
        System.out.println("学生在吃饭");
    }

    public void doStuding(){
        System.out.println("学生在学习");
    }
    public void doPlaying(){
        System.out.println("学生在玩游戏");
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuNo=" + stuNo +
                ", stuAge=" + stuAge +
                ", stuName='" + stuName + '\'' +
                ", stuTacher=" + stuTacher +
                '}';
    }
}
